/**
 * The MIT License (MIT)
 * 
 * Copyright (c) 2016 mo_yq5 (mo_yq5@163.com)
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 * this software and associated documentation files (the "Software"), to deal in
 * the Software without restriction, including without limitation the rights to
 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
 * the Software, and to permit persons to whom the Software is furnished to do so,
 * subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 */
package com.openapi.alipay.trade.order.settle;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 统一收单交易结算接口－请求参数－分账明细信息
 * @author Moyq5
 * @since 2016年8月7日
 */
public class RoyaltyParameter {

	/**
	 * 分账支出方账户，类型为userId，本参数为要分账的支付宝账号对应的支付宝唯一用户号。以2088开头的纯16位数字。<br>
	 * 最长16，如：2088101126765726
	 */
	@JsonProperty("trans_out")
	private String transOut;
	
	/**
	 * 分账收入方账户，类型为userId，本参数为要分账的支付宝账号对应的支付宝唯一用户号。以2088开头的纯16位数字。<br>
	 * 最长16，如：2088101126708402
	 */
	@JsonProperty("trans_in")
	private String transIn;
	
	/**
	 * 分账的金额，单位为元<br>
	 * 最长9，如：0.1
	 */
	private Float amount;
	
	/**
	 * 分账信息中分账百分比。取值范围为大于0，少于或等于100的整数。<br>
	 * 最长3，如：100
	 */
	@JsonProperty("amount_percentage")
	private Integer amountPercentage;
	
	/**
	 * 分账描述<br>
	 * 最长1000，如：分账给2088101126708402
	 */
	private String desc;

	/**
	 * @return the transOut
	 */
	public String getTransOut() {
		return transOut;
	}

	/**
	 * @param transOut the transOut to set
	 */
	public void setTransOut(String transOut) {
		this.transOut = transOut;
	}

	/**
	 * @return the transIn
	 */
	public String getTransIn() {
		return transIn;
	}

	/**
	 * @param transIn the transIn to set
	 */
	public void setTransIn(String transIn) {
		this.transIn = transIn;
	}

	/**
	 * @return the amount
	 */
	public Float getAmount() {
		return amount;
	}

	/**
	 * @param amount the amount to set
	 */
	public void setAmount(Float amount) {
		this.amount = amount;
	}

	/**
	 * @return the amountPercentage
	 */
	public Integer getAmountPercentage() {
		return amountPercentage;
	}

	/**
	 * @param amountPercentage the amountPercentage to set
	 */
	public void setAmountPercentage(Integer amountPercentage) {
		this.amountPercentage = amountPercentage;
	}

	/**
	 * @return the desc
	 */
	public String getDesc() {
		return desc;
	}

	/**
	 * @param desc the desc to set
	 */
	public void setDesc(String desc) {
		this.desc = desc;
	}
}
